home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Plug-In Power Pack for Netscape Communicator
/
Plug-In Power Pack for Netscape Communicator.iso
/
plugins
/
dataviews
/
dvtools
/
demos
/
citydemo
/
c4i_vars.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-08
|
2KB
|
100 lines
#ifndef lint
static char SccsId[]= "@(#)c4i_vars.c V1.13 4/13/95";
#endif
/*------------------------------------------------------------------
| file name -- c4i_vars.c
|-----------------------------------------------------------------*/
#include "std.h"
#include "dvstd.h"
#include "dvtools.h"
#include "VOstd.h"
#include "c4i_vars.h"
#include "c4i_fundecl.h"
/* DECLARATION and INITIALIZATION of global variables for DISPLAY */
CHAR *DeviceName = NULL;
DRAWPORT ActiveDrawport;
DRAWPORT CalculatingDp[2];
RECTANGLE Pvp_screen[NUM_POPUP_DP]; /* popup screen coords. */
RECTANGLE Pvp_drawing[NUM_POPUP_DP]; /* " world " */
RECTANGLE Pdd_scr_coords[NUM_POPUP_DP]; /* " screen " */
/*for Zoom Management */
RECTANGLE PortSize[2];
RECTANGLE MaxVp =
{0, 0, MAXCOORD, MAXCOORD};
INT ZoomeD;
DV_BOOL ZoomToActive = 0;
struct _ZOOM_INFO ZoomInfo;
/* DECLARATION for global variables for managing windows */
OBJECT DVscreen[NUM_WINDOWS] =
{0, 0};
INT ActiveScreenIndex;
DRAWPORT Drawport[NUM_WINDOWS] =
{0, 0};
CHAR *WindowName[NUM_WINDOWS] =
{
"City Managment Map", /* MAIN WINDOW */
"City Management Controls" /* CONTROL WINDOW */
};
DV_POINT WindowSize[NUM_WINDOWS] =
{
#ifdef WINNT
570, 426, /* MAIN */
230, 200 /* CONTROL */
#else /* Not WINNT */
-1, -1, /* MAIN */
310, 235 /* CONTROL */
#endif /* WINNT */
};
DV_POINT WindowPos[NUM_WINDOWS] =
{
#ifdef WINNT
240, 0, /* MAIN */
0, 0 /* CONTROL */
#else /* Not WINNT */
100, 100, /* MAIN */
0, 0 /* CONTROL */
#endif /* WINNT */
};
SYMTABLE
DpTable, ViewTable;
/* REMINDER: NUM_VU_PRELOAD is currently set to ===> 3 */
PRELOAD_VIEW PreldView[NUM_VU_PRELOAD] =
{
MAP_VIEW, NO,
HELP_VIEW, NO,
ZOOM_VIEW, YES /* see comment for InitZoomInfo() in c4i_zoom.c */
};
CHAR *SamplePopupVu[NUM_POPUP_DP] =
{
/* PopUpClass 0 */ "cinh01.v",
/* PopUpClass 1 */ "trnh01.v",
/* PopUpClass 2 */
/* PopUpClass NUM_POPUP_DP-1 */
};
DISPLAY_LIST *DisplayList;
/* DECLARATION AND INITIALIZATION of global variables for control. */
DV_BOOL ApplicationState = RUNNING;
DV_BOOL HelpNotActive = YES;